﻿
namespace CBL
{
    public static class ExtensionMethods
    {
        public static string ToKoDau(this string s)
        {
            return CommonBusinessObject.UnicodeToKoDau(s);
        }

        public static string ToKoDauAndGach(this string s)
        {
            return CommonBusinessObject.UnicodeToKoDauAndGach(s);
        }

        public static T ChangeType<T>(this object o)
        {
            return CommonBusinessObject.ChangeType<T>(o);
        }

        public static bool ChangeTypeToBoolean(this string value)
        {
            return CommonBusinessObject.ObjectToBoolean(value);
        }

        public static string ToSubString(this string s, int length)
        {
            return CommonBusinessObject.ToSubString(s, length);
        }
    }
}
